#!/usr/bin/env bash
# Author: Jordan Rupprecht

PWD=`pwd`
echo `hostname -f` > host
rm -f done &> /dev/null
touch now
sleep 1
./$1 $2 > stdout 2> stderr
CHANGED=`find . -newer now -type f -printf '%P\n' | tr "\n" " "`
eval "touch done"
tar -zcf $PWD/changed.tar.gz $CHANGED
